package com.oa.pm.service;

import com.joneying.common.web.response.Resp;
import com.oa.core.exception.BusinessException;
import com.oa.core.exception.DataIsEmptyException;
import com.oa.pm.dto.DimissionManagementAddDTO;
import com.oa.pm.dto.DimissionManagementAuditDTO;
import com.oa.pm.dto.DimissionManagementListDTO;
import com.oa.pm.vo.DimissionManagementDetailsVO;
import com.oa.pm.vo.DimissionManagementListVO;
import com.oa.core.PageResult;
import com.oa.pm.entity.DimissionManagement;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 离职管理表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface IDimissionManagementService extends IService<DimissionManagement> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<DimissionManagement> findList(Integer pageNum, Integer pageSize);

    /**
    * 根据id查询
    */
    DimissionManagement findDimissionManagementById(String id);

    PageResult<DimissionManagementListVO> findDimissionManagementAuditList(DimissionManagementListDTO dimissionManagementListDTO);

    Resp audit(DimissionManagementAuditDTO dimissionManagementAuditDTO) throws DataIsEmptyException;

    DimissionManagementDetailsVO findDimissionManagementAudit(String id);

    Resp add(DimissionManagementAddDTO dimissionManagementAddDTO) throws BusinessException, DataIsEmptyException;
}
